package com.lcj.mis.service.impl;

import com.lcj.common.util.Result;
import com.lcj.mis.controller.form.DeleteRuleForm;
import com.lcj.mis.controller.form.InsertRuleForm;
import com.lcj.mis.controller.form.SearchRuleForm;
import com.lcj.mis.controller.form.UpdateRuleForm;
import com.lcj.mis.feign.RuleServiceApi;
import com.lcj.mis.service.RuleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class RuleServiceImpl implements RuleService {

    @Resource
    private RuleServiceApi ruleServiceApi;

    @Override
    public Result searchRule(SearchRuleForm form) {
        Result result = ruleServiceApi.searchRule(form);
        return result;
    }

    @Override
    public Result insertRule(InsertRuleForm form) {
        Result result = ruleServiceApi.insertRule(form);
        return result;
    }

    @Override
    public Result updateRule(UpdateRuleForm form) {
        Result result = ruleServiceApi.updateRule(form);
        return result;
    }

    @Override
    public Result deleteRule(DeleteRuleForm form) {
        Result result = ruleServiceApi.deleteRule(form);
        return result;
    }
}
